Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / 7e9998b

Commit 7e9998b4fd3d90eac50bc4e0ac45983be2f23d8e


Parents : 79abe93
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-05-03T12:21:57+02:00

Use included platform detection method

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/RNS/Interfaces/LocalInterface.py b/RNS/Interfaces/LocalInterface.py
index 1a37e64e..a8433b28 100644
--- a/RNS/Interfaces/LocalInterface.py
+++ b/RNS/Interfaces/LocalInterface.py
@@ -42,7 +42,7 @@ class HDLC():
class ThreadingTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
def server_bind(self):
- if sys.platform == 'win32':
+ if RNS.vendor.platformutils.is_windows():
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
else:
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

Served by rngit 1.5.2 - Generated in 0.03s